package cn.com.lushunming;

/**
 * @author lushunming
 * @date 2019/7/3
 */
public class Main {

    public static void main(String args[]) {
        for (int i = 0; i < 1000; i++) {
            int finalI1 = i;
            Thread thread = new Thread(() ->
            {
                System.out.println(finalI1 + "start");
                try {
                    Thread.sleep(1000000);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
                System.out.println(finalI1 + "end");
            });

            thread.start();

        }
    }
}
